import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import "./assets/font-awesome/css/font-awesome.css";
import axios from "axios";
import echarts from "echarts";
import store from "./store/index";
import MessageBox from "./components/Message/index";
// console.log(store.state)

Vue.prototype.$echarts = echarts;

Vue.config.productionTip = false;
// Vue.prototype.$http = axios;

// import iview from 'iview'
import iview from "iview"; // 导入组件库
import "iview/dist/styles/iview.css"; // 导入样式
// Vue.prototype.$iview = iview

//获取浏览器链接中的参数
import "./assets/css/common.css";
// import axios from 'axios'
// import {post,get,patch,put} from './assets/js/axios'
//定义全局变量
// Vue.prototype.$post=post;
// Vue.prototype.$get=get;
// Vue.prototype.$patch=patch;
// Vue.prototype.$put=put;
Vue.use(iview, {
  transfer: true,
  size: "large"
});
Vue.use(MessageBox);

new Vue({
  render: h => h(App),
  router,
  store
}).$mount("#app");
